package com.dd.census.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import com.dd.census.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Created at Tue Apr 13 10:33:02 CST 2021 by  w10g <br>
 * Initialize Test ... <br>
 * 测试 业务表
 *
 * @author  wanghuanan
 * @since 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_test")
public class Test extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 文本
     */
    @TableField(value = "text")
    private String text;

    /**
     * 时间
     */
    @TableField(value = "date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

}
